﻿// --------------------------------------------------------
// <copyright file="UEditorController.cs" company="ChiakiYu">
//     Copyright (c) 2015-2017 ChiakiYu.All rights reserved
// </copyright >
// <creation-date>2017-03-29 13:42</creation-date>
// <last-editor>于琦(yu_199012@qq.com)</last-editor>
// <last-date>2017-03-29 16:38</last-date>
// --------------------------------------------------------

using System.Web.Mvc;

namespace MvcDemo.Controllers
{
    public class UEditorController : Controller
    {
        public ActionResult UEditor()
        {
            return View();
        }

        [HttpPost]
        [ValidateInput(false)]
        public ActionResult UEditorPost()
        {
            var content = Request.Form.Get("editorValue");

            ViewData["content"] = content;
            return View("UEditor");
        }
    }
}